package org.jeecg.modules.student.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.common.system.base.entity.SysUserTit;
import org.jeecg.modules.student.entity.AstuInformation;
import org.jeecg.modules.student.mapper.AstuInformationMapper;
import org.jeecg.modules.student.service.IAstuInformationService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Description: 学生信息表
 * @Author: jeecg-boot
 * @Date:   2020-11-06
 * @Version: V1.0
 */
@Service
public class AstuInformationServiceImpl extends ServiceImpl<AstuInformationMapper, AstuInformation> implements IAstuInformationService {

    @Resource
    private AstuInformationMapper astuInformationMapper;
    @Override
    public int updateStudentInfo(AstuInformation student) {
        return astuInformationMapper.updateStudentInfo(student);
    }

    @Override
    public int updateUserInfo(SysUserTit user) {
        return astuInformationMapper.updateUserInfo(user);
    }

    @Override
    public SysUserTit selectUser(String userid) {
        return astuInformationMapper.selectUser(userid);
    }

    @Override
    public int deleteUserById(String userid) {
        return astuInformationMapper.deleteUserById(userid);
    }

    @Override
    public String selectStuNameByStuNum(String stuNumber) {
        return astuInformationMapper.selectStuNameByStuNum(stuNumber);
    }

    @Override
    public AstuInformation selectByStuNum(String stuNumber) {
        return astuInformationMapper.selectByStuNum(stuNumber);
    }
}
